/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vce.election.domain;

import com.vce.*;

/**
 *
 * @author Ggutierrez
 */
public class Jrv implements Persistent {

    private Long id;
    private Year year;
    private int stateCode;
    private int townCode;
    private Long district;
    private BallotCentre ballotCentre;
    private int ballotCentreCode;
    private String code;
    private Long registral;
    private Long electors;
    private Audit audit;
    private boolean sample;

    public Jrv() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Year getYear() {
        return year;
    }

    public void setYear(Year year) {
        this.year = year;
    }

    public int getStateCode() {
        return stateCode;
    }

    public void setStateCode(int stateCode) {
        this.stateCode = stateCode;
    }

    public int getTownCode() {
        return townCode;
    }

    public void setTownCode(int townCode) {
        this.townCode = townCode;
    }

    public Long getDistrict() {
        return district;
    }

    public void setDistrict(Long district) {
        this.district = district;
    }

    public BallotCentre getBallotCentre() {
        return ballotCentre;
    }

    public void setBallotCentre(BallotCentre ballotCentre) {
        this.ballotCentre = ballotCentre;
    }

    public int getBallotCentreCode() {
        return ballotCentreCode;
    }

    public void setBallotCentreCode(int ballotCentreCode) {
        this.ballotCentreCode = ballotCentreCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getRegistral() {
        return registral;
    }

    public void setRegistral(Long registral) {
        this.registral = registral;
    }

    public Long getElectors() {
        return electors;
    }

    public void setElectors(Long electors) {
        this.electors = electors;
    }

    public Audit getAudit() {
        return audit;
    }

    public void setAudit(Audit audit) {
        this.audit = audit;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if (!(other instanceof Jrv)) {
            return false;
        }
        Jrv _o = (Jrv) other;
        return id.equals(_o.id);
    }

    public boolean isSample() {
        return sample;
    }

    public void setSample(boolean sample) {
        this.sample = sample;
    }
}